/*
 * Copyright (c) 2023 Huawei Technologies Co., Ltd.
 * openUBMC is licensed under Mulan PSL v2.
 * You can use this software according to the terms and conditions of the Mulan PSL v2.
 * You may obtain a copy of Mulan PSL v2 at:
 *         http://license.coscl.org.cn/MulanPSL2
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PSL v2 for more details.
 */

#ifndef __AWM_M11P_GPU_H__
#define __AWM_M11P_GPU_H__

#include "interface/gpu.h"
#include "interface/gpu/power.h"
#include "interface/gpu/status.h"
#include "interface/processor.h"
#include <mc/engine.h>

namespace dev {

class awm_m11p_gpu : public mc::engine::object<awm_m11p_gpu> {
public:
    MC_OBJECT(awm_m11p_gpu, "Gpu", "Gpu/${Id}", (Processor)(Gpu)(Gpu_Power)(Gpu_Status))

    awm_m11p_gpu()  = default;
    ~awm_m11p_gpu() = default;

    bool start();
    bool stop();
    bool init(mc::mutable_dict& csr_object, const mc::dict& connector);

    bool reset_default_properties();

    Processor  m_processor;
    Gpu        m_gpu;
    Gpu_Power  m_gpu_power;
    Gpu_Status m_gpu_status;
};

} // namespace dev

#endif
